package com.itheima.demo02;


import java.util.Date;

public class MainDate {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date.getTime());
        System.out.println(date.getTime() * 1.0 / 1000 / 60 / 60 / 24 / 365 + "年");
        Date date1 = new Date();
        System.out.println(date1);
        date1.setTime(0L);
        System.out.println(date1);
    }
}
